<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var str = `{
	"promo-list": [{
			"title": "adbd",
			"url": "https://item.mi.com/1191400018.html",
			"thumbnail": "https://i1.mifile.cn/a4/xmad_15608266264545_qWIRv.jpg",
			"desc": "",
			"price": ""
		},
		{
			"title": "",
			"url": "https://item.mi.com/product/9527.html",
			"thumbnail": "https://i1.mifile.cn/a4/xmad_15608266614476_wdGNy.jpg",
			"desc": "",
			"price": ""
		}
    ]  } `
        var obj = JSON.parse(str)
        var obj2 = {
            title: "adbd",
            "url": "https://item.mi.com/1191400018.html",
            "thumbnail": "https://i1.mifile.cn/a4/xmad_15608266264545_qWIRv.jpg",
            "desc": "",
            "price": "",
            say:function(){console.log('hah')}
        }
        var str2 = JSON.stringify(obj2)
    </script>
</body>

</html>